//
//  PlaneItemCell.m
//  Traveling
//
//  Created by 曹秀云 on 15/6/23.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "PlaneItemCell.h"

@interface PlaneItemCell()

@property (weak, nonatomic) IBOutlet UILabel *PlanCompanyNameLabel;

@property (weak, nonatomic) IBOutlet UILabel *startTimeLabel;

@property (weak, nonatomic) IBOutlet UILabel *arriveTiemLabel;

@property (weak, nonatomic) IBOutlet UILabel *startLocationLabel;
@property (weak, nonatomic) IBOutlet UILabel *arriverLocationLabel;
@property (weak, nonatomic) IBOutlet UILabel *flightNumLabel;

@end

@implementation PlaneItemCell
+(instancetype)cellWithTabelView:(UITableView *)tableView{
    PlaneItemCell *cell = [tableView dequeueReusableCellWithIdentifier:@"PlaneItemCell"];
    return cell;
}

-(void)setResult:(PlaneResult *)result{
    _result = result;
    self.PlanCompanyNameLabel.text = result.Airline;
    self.startTimeLabel.text = result.DepTime;
    self.arriveTiemLabel.text = result.ArrTime;
    self.startLocationLabel.text = result.DepCity;
    self.arriverLocationLabel.text = result.ArrCity;
    self.flightNumLabel.text = result.FlightNum;
}

@end
